package org.example.infrastructure.persistent.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.infrastructure.persistent.po.StockZeroTaskPO;

import java.util.List;

/**
 * @author lxc18
 * @date 2025/4/2 11:11
 * @description IStockZeroTaskDao
 */
@Mapper
public interface IStockZeroTaskDao {
    //插入
    boolean insert(StockZeroTaskPO stockZeroTaskPO);

    //根据id查询
    StockZeroTaskPO queryById(Long id);

    //更新状态
    boolean updateStatusToSuccess(Long id);
    //更新状态
    boolean updateStatusToFailed(Long id);


    List<StockZeroTaskPO> queryAllFailedTaskIds();
}
